/*
 * Generated file. 
 * 
 * Mobile.java
 */
package xsp;

import com.ibm.xsp.page.compiled.AbstractCompiledPage;
import com.ibm.xsp.page.compiled.AbstractCompiledPageDispatcher;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import com.ibm.xsp.page.compiled.NoSuchComponentException;
import com.ibm.xsp.page.compiled.PageExpressionEvaluator;
import java.lang.String;
import com.ibm.xsp.resource.ScriptResource;
import com.ibm.xsp.component.FacesPageProvider;
import java.util.Map;
import java.lang.Object;
import com.ibm.xsp.model.domino.DominoDocumentData;
import javax.faces.el.MethodBinding;
import javax.faces.el.ValueBinding;
import com.ibm.xsp.component.FacesDataProvider;
import com.ibm.xsp.component.UIViewRootEx2;
import com.ibm.xsp.extlib.component.mobile.UIApplication;
import com.ibm.xsp.extlib.component.mobile.UIMobilePage;
import com.ibm.xsp.component.UIIncludeComposite;

@SuppressWarnings("all")
public class Mobile extends AbstractCompiledPageDispatcher{
    
    public Mobile() {
        super("3.0");
    }

    protected AbstractCompiledPage createPage(int pageIndex) {
        return new MobilePage();
    }
    
    public static class MobilePage extends AbstractCompiledPage {
        
        private static final ComponentInfo[] s_infos = new ComponentInfo[]{
            ComponentInfo.EMPTY_NORMAL, // 0 mobile_home
            new ComponentInfo(false, new int[]{0}), // 1 "home"
            ComponentInfo.EMPTY_NORMAL, // 2 authorProfileForm
            new ComponentInfo(false, new int[]{2}), // 3 "profile"
            ComponentInfo.EMPTY_NORMAL, // 4 mobile_newTopic
            new ComponentInfo(false, new int[]{4}), // 5 "newtopic"
            ComponentInfo.EMPTY_NORMAL, // 6 allDocumentsView
            new ComponentInfo(false, new int[]{6}), // 7 "alldocs"
            ComponentInfo.EMPTY_NORMAL, // 8 byMostRecentView
            new ComponentInfo(false, new int[]{8}), // 9 "mostrecent"
            ComponentInfo.EMPTY_NORMAL, // 10 byAuthorView
            new ComponentInfo(false, new int[]{10}), // 11 "docsbyauthor"
            ComponentInfo.EMPTY_NORMAL, // 12 byTagView
            new ComponentInfo(false, new int[]{12}), // 13 "tags"
            ComponentInfo.EMPTY_NORMAL, // 14 myDocumentsView
            new ComponentInfo(false, new int[]{14}), // 15 "mydocs"
            ComponentInfo.EMPTY_NORMAL, // 16 authorProfileView
            new ComponentInfo(false, new int[]{16}), // 17 "authorprofile"
            ComponentInfo.EMPTY_NORMAL, // 18 viewTopic
            new ComponentInfo(false, new int[]{18}), // 19 "document"
            ComponentInfo.EMPTY_NORMAL, // 20 response
            new ComponentInfo(false, new int[]{20}), // 21 "replythread"
            ComponentInfo.EMPTY_NORMAL, // 22 mobile_largeContent
            new ComponentInfo(false, new int[]{22}), // 23 "largecontent"
            ComponentInfo.EMPTY_NORMAL, // 24 viewTopic2
            new ComponentInfo(false, new int[]{24}), // 25 "document2"
            new ComponentInfo(false, new int[]{1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25}), // 26 "discussionapp"
            new ComponentInfo(false, new int[]{26}), // 27 view
        };
        
        public MobilePage() {
            super(27, s_infos );
        }
        
        public int getComponentForId(String id) throws NoSuchComponentException { 
            if( "discussionapp".equals(id) )
                return 26;
            if( "home".equals(id) )
                return 1;
            if( "profile".equals(id) )
                return 3;
            if( "newtopic".equals(id) )
                return 5;
            if( "alldocs".equals(id) )
                return 7;
            if( "mostrecent".equals(id) )
                return 9;
            if( "docsbyauthor".equals(id) )
                return 11;
            if( "tags".equals(id) )
                return 13;
            if( "mydocs".equals(id) )
                return 15;
            if( "authorprofile".equals(id) )
                return 17;
            if( "document".equals(id) )
                return 19;
            if( "replythread".equals(id) )
                return 21;
            if( "largecontent".equals(id) )
                return 23;
            if( "document2".equals(id) )
                return 25;
            return -1;
        }
        
        public UIComponent createComponent(int id, FacesContext context,
                UIComponent parent, PageExpressionEvaluator evaluator)
                throws NoSuchComponentException { 
            switch (id) {
            case 27:
                return createView(context, parent, evaluator);
            case 26:
                return createDiscussionapp(context, parent, evaluator);
            case 1:
                return createHome(context, parent, evaluator);
            case 0:
                return createMobile_005f_home(context, parent, evaluator);
            case 3:
                return createProfile(context, parent, evaluator);
            case 2:
                return createAuthorProfileForm(context, parent, evaluator);
            case 5:
                return createNewtopic(context, parent, evaluator);
            case 4:
                return createMobile_005f_newTopic(context, parent, evaluator);
            case 7:
                return createAlldocs(context, parent, evaluator);
            case 6:
                return createAllDocumentsView(context, parent, evaluator);
            case 9:
                return createMostrecent(context, parent, evaluator);
            case 8:
                return createByMostRecentView(context, parent, evaluator);
            case 11:
                return createDocsbyauthor(context, parent, evaluator);
            case 10:
                return createByAuthorView(context, parent, evaluator);
            case 13:
                return createTags(context, parent, evaluator);
            case 12:
                return createByTagView(context, parent, evaluator);
            case 15:
                return createMydocs(context, parent, evaluator);
            case 14:
                return createMyDocumentsView(context, parent, evaluator);
            case 17:
                return createAuthorprofile(context, parent, evaluator);
            case 16:
                return createAuthorProfileView(context, parent, evaluator);
            case 19:
                return createDocument(context, parent, evaluator);
            case 18:
                return createViewTopic(context, parent, evaluator);
            case 21:
                return createReplythread(context, parent, evaluator);
            case 20:
                return createResponse(context, parent, evaluator);
            case 23:
                return createLargecontent(context, parent, evaluator);
            case 22:
                return createMobile_005f_largeContent(context, parent, evaluator);
            case 25:
                return createDocument2(context, parent, evaluator);
            case 24:
                return createViewTopic2(context, parent, evaluator);
            }
            throw new NoSuchComponentException(id);
        }
        
        protected void initIncluderAsRoot(FacesContext context,
                PageExpressionEvaluator evaluator, UIComponent root) {
            ScriptResource resources = new ScriptResource();
            resources.setComponent(root);
            resources.setClientSide(false);
            resources.setSrc("/mobile-server.jss");
            FacesPageProvider asPageProvider = root instanceof FacesPageProvider ?
                    (FacesPageProvider) root : null;
            if( null != asPageProvider ){
                asPageProvider.addResource(resources);
            }
            Map<String,Object> attrs = getAttributes(root);
            attrs.put("pageTitle", "Discussion");
            DominoDocumentData data = new DominoDocumentData();
            data.setComponent(root);
            String sourceId = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.querySaveDocument[1]/text()";
            MethodBinding querySaveDocument = evaluator.createMethodBinding(root,
                    "#{javascript:// flush out the old image if updating with a new one...\n\t\t\tif(!profileDoc.isNewNote())\n\t\t\t{\n\t\t\t\tvar al:java.util.List = profileDoc.getAttachmentList(\"attachment\");\n\t\t\t\tif(!al.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tvar lastItemIndex = al.size() - 1;\n\t\t\t\t\tif(lastItemIndex > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(var i = lastItemIndex - 1; i >= 0; i--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar eo:NotesEmbeddedObject = al.get(i);\n\t\t\t\t\t\t\tprofileDoc.removeAttachment(\"attachment\", eo.getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// store user CGI variables...\n\t\t\tvar cgi = new CGIVariables();\n\t\t\tprofileDoc.replaceItemValue(\"Remote_User\", cgi.get(\"REMOTE_USER\"));\n\t\t\tprofileDoc.replaceItemValue(\"Remote_Addr\", cgi.get(\"REMOTE_ADDR\"));\n\t\t\tcgi = null;}",
                    null,null, sourceId);
            data.setQuerySaveDocument(querySaveDocument);
            data.setComputeWithForm("onsave");
            data.setIgnoreRequestParams(true);
            String sourceId2 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.action[1]/text()";
            String actionExpr = "#{javascript:// obtain the document id for the logged in user if it exists...\n\t\t\tvar db:NotesDatabase\t= database;\n\t\t\tvar vw:NotesView\t\t= db.getView(\"xpAuthorProfiles\");\n\t\t\tvar ve:NotesViewEntry\t= vw.getEntryByKey(userBean.canonicalName, true);\n\n\t\t\tif (null != ve) \n\t\t\t{\n\t\t\t\treturn(\"openDocument\");\n\t\t\t}\n\t\t\treturn(\"newDocument\");}";
            ValueBinding action = evaluator.createValueBinding(root, actionExpr, sourceId2,String.class);
            data.setValueBinding("action", action);
            String sourceId3 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.documentId[1]/text()";
            String documentIdExpr = "#{javascript:// obtain the document id for the logged in user if it exists...\n\t\t\tvar db:NotesDatabase\t= database;\n\t\t\tvar vw:NotesView\t\t= db.getView(\"xpAuthorProfiles\");\n\t\t\tvar ve:NotesViewEntry\t= vw.getEntryByKey(userBean.canonicalName, true);\n\t\t\tvar unid\t\t\t\t= null;\n\n\t\t\tif (null != ve) \n\t\t\t{\n\t\t\t\tunid = ve.getUniversalID();\n\t\t\t}\n\t\t\treturn(unid);}";
            ValueBinding documentId = evaluator.createValueBinding(root, documentIdExpr, sourceId3,String.class);
            data.setValueBinding("documentId", documentId);
            data.setVar("profileDoc");
            data.setFormName("PersonalProfile");
            FacesDataProvider asDataProvider = root instanceof FacesDataProvider ?
                    (FacesDataProvider) root : null;
            if( null != asDataProvider ){
                asDataProvider.addData(data);
            }
            DominoDocumentData data2 = new DominoDocumentData();
            data2.setComponent(root);
            String sourceId4 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[2]/xp:this.querySaveDocument[1]/text()";
            MethodBinding querySaveDocument2 = evaluator.createMethodBinding(root,
                    "#{javascript:// store user CGI variables\n\t\t\tvar cgi = new CGIVariables();\n\t\t\tdominoDoc.replaceItemValue(\"Remote_User\", cgi.get(\"REMOTE_USER\"));\n\t\t\tdominoDoc.replaceItemValue(\"Remote_Addr\", cgi.get(\"REMOTE_ADDR\"));\n\t\t\tcgi = null;}",
                    null,null, sourceId4);
            data2.setQuerySaveDocument(querySaveDocument2);
            data2.setComputeWithForm("onsave");
            String sourceId5 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[2]/xp:this.postOpenDocument[1]/text()";
            MethodBinding postOpenDocument = evaluator.createMethodBinding(root,
                    "#{javascript:// get the main topic details...\n\t\t\tviewScope.mainUNID = dominoDoc.getItemValueString(\"mainID\");\n\t\t\tif(\"\" != viewScope.mainUNID){\n\t\t\t\tvar mainTopic:NotesDocument = null;\n\t\t\t\ttry{\n\t\t\t\t\t// try to locate parent topic...\n\t\t\t\t\tmainTopic = database.getDocumentByUNID(viewScope.mainUNID);\n\t\t\t\t\tif(null != mainTopic){\n\t\t\t\t\t\tviewScope.mainID = mainTopic.getNoteID();\n\t\t\t\t\t\tviewScope.mainSubject = mainTopic.getItemValueString(\"Subject\");\n\t\t\t\t\t\tviewScope.mainCreated = mainTopic.getCreated().toJavaDate();\n\t\t\t\t\t\tviewScope.mainFrom = mainTopic.getItemValueString(\"From\");\n\t\t\t\t\t\tviewScope.mainAbstract = mainTopic.getItemValueString(\"Abstract\");\n\t\t\t\t\t}\n\t\t\t\t}catch(e){\n\t\t\t\t\t// if non-existent, then use current document...\n\t\t\t\t\tmainTopic = dominoDoc;\n\t\t\t\t\tif(null != mainTopic){\n\t\t\t\t\t\tviewScope.mainID = mainTopic.getNoteID();\n\t\t\t\t\t\tviewScope.mainSubject = mainTopic.getItemValueString(\"Subject\");\n\t\t\t\t\t\tviewScope.mainCreated = mainTopic.getDocument().getCreated().toJavaDate();\n\t\t\t\t\t\tviewScope.mainFrom = mainTopic.getItemValueString(\"From\");\n\t\t\t\t\t\tviewScope.mainAbstract = mainTopic.getItemValueString(\"Abstract\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}}",
                    null,null, sourceId5);
            data2.setPostOpenDocument(postOpenDocument);
            data2.setAction("newDocument");
            data2.setVar("dominoDoc");
            data2.setFormName("MainTopic");
            if( null != asDataProvider ){
                asDataProvider.addData(data2);
            }
        }

        private UIComponent createView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIViewRootEx2 result = new UIViewRootEx2();
            initViewRoot(result);
            ScriptResource resources = new ScriptResource();
            resources.setComponent(result);
            resources.setClientSide(false);
            resources.setSrc("/mobile-server.jss");
            result.addResource(resources);
            result.setPageTitle("Discussion");
            DominoDocumentData data = new DominoDocumentData();
            data.setComponent(result);
            String sourceId = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.querySaveDocument[1]/text()";
            MethodBinding querySaveDocument = evaluator.createMethodBinding(result,
                    "#{javascript:// flush out the old image if updating with a new one...\n\t\t\tif(!profileDoc.isNewNote())\n\t\t\t{\n\t\t\t\tvar al:java.util.List = profileDoc.getAttachmentList(\"attachment\");\n\t\t\t\tif(!al.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tvar lastItemIndex = al.size() - 1;\n\t\t\t\t\tif(lastItemIndex > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(var i = lastItemIndex - 1; i >= 0; i--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar eo:NotesEmbeddedObject = al.get(i);\n\t\t\t\t\t\t\tprofileDoc.removeAttachment(\"attachment\", eo.getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// store user CGI variables...\n\t\t\tvar cgi = new CGIVariables();\n\t\t\tprofileDoc.replaceItemValue(\"Remote_User\", cgi.get(\"REMOTE_USER\"));\n\t\t\tprofileDoc.replaceItemValue(\"Remote_Addr\", cgi.get(\"REMOTE_ADDR\"));\n\t\t\tcgi = null;}",
                    null,null, sourceId);
            data.setQuerySaveDocument(querySaveDocument);
            data.setComputeWithForm("onsave");
            data.setIgnoreRequestParams(true);
            String sourceId2 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.action[1]/text()";
            String actionExpr = "#{javascript:// obtain the document id for the logged in user if it exists...\n\t\t\tvar db:NotesDatabase\t= database;\n\t\t\tvar vw:NotesView\t\t= db.getView(\"xpAuthorProfiles\");\n\t\t\tvar ve:NotesViewEntry\t= vw.getEntryByKey(userBean.canonicalName, true);\n\n\t\t\tif (null != ve) \n\t\t\t{\n\t\t\t\treturn(\"openDocument\");\n\t\t\t}\n\t\t\treturn(\"newDocument\");}";
            ValueBinding action = evaluator.createValueBinding(result, actionExpr, sourceId2,String.class);
            data.setValueBinding("action", action);
            String sourceId3 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[1]/xp:this.documentId[1]/text()";
            String documentIdExpr = "#{javascript:// obtain the document id for the logged in user if it exists...\n\t\t\tvar db:NotesDatabase\t= database;\n\t\t\tvar vw:NotesView\t\t= db.getView(\"xpAuthorProfiles\");\n\t\t\tvar ve:NotesViewEntry\t= vw.getEntryByKey(userBean.canonicalName, true);\n\t\t\tvar unid\t\t\t\t= null;\n\n\t\t\tif (null != ve) \n\t\t\t{\n\t\t\t\tunid = ve.getUniversalID();\n\t\t\t}\n\t\t\treturn(unid);}";
            ValueBinding documentId = evaluator.createValueBinding(result, documentIdExpr, sourceId3,String.class);
            data.setValueBinding("documentId", documentId);
            data.setVar("profileDoc");
            data.setFormName("PersonalProfile");
            result.addData(data);
            DominoDocumentData data2 = new DominoDocumentData();
            data2.setComponent(result);
            String sourceId4 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[2]/xp:this.querySaveDocument[1]/text()";
            MethodBinding querySaveDocument2 = evaluator.createMethodBinding(result,
                    "#{javascript:// store user CGI variables\n\t\t\tvar cgi = new CGIVariables();\n\t\t\tdominoDoc.replaceItemValue(\"Remote_User\", cgi.get(\"REMOTE_USER\"));\n\t\t\tdominoDoc.replaceItemValue(\"Remote_Addr\", cgi.get(\"REMOTE_ADDR\"));\n\t\t\tcgi = null;}",
                    null,null, sourceId4);
            data2.setQuerySaveDocument(querySaveDocument2);
            data2.setComputeWithForm("onsave");
            String sourceId5 = "/xp:view[1]/xp:this.data[1]/xp:dominoDocument[2]/xp:this.postOpenDocument[1]/text()";
            MethodBinding postOpenDocument = evaluator.createMethodBinding(result,
                    "#{javascript:// get the main topic details...\n\t\t\tviewScope.mainUNID = dominoDoc.getItemValueString(\"mainID\");\n\t\t\tif(\"\" != viewScope.mainUNID){\n\t\t\t\tvar mainTopic:NotesDocument = null;\n\t\t\t\ttry{\n\t\t\t\t\t// try to locate parent topic...\n\t\t\t\t\tmainTopic = database.getDocumentByUNID(viewScope.mainUNID);\n\t\t\t\t\tif(null != mainTopic){\n\t\t\t\t\t\tviewScope.mainID = mainTopic.getNoteID();\n\t\t\t\t\t\tviewScope.mainSubject = mainTopic.getItemValueString(\"Subject\");\n\t\t\t\t\t\tviewScope.mainCreated = mainTopic.getCreated().toJavaDate();\n\t\t\t\t\t\tviewScope.mainFrom = mainTopic.getItemValueString(\"From\");\n\t\t\t\t\t\tviewScope.mainAbstract = mainTopic.getItemValueString(\"Abstract\");\n\t\t\t\t\t}\n\t\t\t\t}catch(e){\n\t\t\t\t\t// if non-existent, then use current document...\n\t\t\t\t\tmainTopic = dominoDoc;\n\t\t\t\t\tif(null != mainTopic){\n\t\t\t\t\t\tviewScope.mainID = mainTopic.getNoteID();\n\t\t\t\t\t\tviewScope.mainSubject = mainTopic.getItemValueString(\"Subject\");\n\t\t\t\t\t\tviewScope.mainCreated = mainTopic.getDocument().getCreated().toJavaDate();\n\t\t\t\t\t\tviewScope.mainFrom = mainTopic.getItemValueString(\"From\");\n\t\t\t\t\t\tviewScope.mainAbstract = mainTopic.getItemValueString(\"Abstract\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}}",
                    null,null, sourceId5);
            data2.setPostOpenDocument(postOpenDocument);
            data2.setAction("newDocument");
            data2.setVar("dominoDoc");
            data2.setFormName("MainTopic");
            result.addData(data2);
            return result;
        }

        private UIComponent createDiscussionapp(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIApplication result = new UIApplication();
            result.setSelectedPageName("mostRecent");
            setId(result, "DiscussionApp");
            return result;
        }

        private UIComponent createHome(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("home");
            setId(result, "home");
            return result;
        }

        private UIComponent createMobile_005f_home(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/mobile_home.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createProfile(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setPreload(true);
            result.setResetContent(true);
            result.setPageName("profile");
            setId(result, "profile");
            return result;
        }

        private UIComponent createAuthorProfileForm(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/authorProfileForm.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createNewtopic(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setPreload(true);
            result.setResetContent(true);
            result.setPageName("newTopic");
            setId(result, "newTopic");
            return result;
        }

        private UIComponent createMobile_005f_newTopic(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/mobile_newTopic.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createAlldocs(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("allDocs");
            setId(result, "allDocs");
            return result;
        }

        private UIComponent createAllDocumentsView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/allDocumentsView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createMostrecent(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("mostRecent");
            setId(result, "mostRecent");
            return result;
        }

        private UIComponent createByMostRecentView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/byMostRecentView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createDocsbyauthor(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("docsByAuthor");
            setId(result, "docsByAuthor");
            return result;
        }

        private UIComponent createByAuthorView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/byAuthorView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createTags(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("tags");
            setId(result, "tags");
            return result;
        }

        private UIComponent createByTagView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/byTagView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createMydocs(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("myDocs");
            setId(result, "myDocs");
            return result;
        }

        private UIComponent createMyDocumentsView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/myDocumentsView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createAuthorprofile(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("authorProfile");
            setId(result, "authorProfile");
            return result;
        }

        private UIComponent createAuthorProfileView(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/authorProfileView.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createDocument(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("document");
            setId(result, "document");
            return result;
        }

        private UIComponent createViewTopic(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/viewTopic.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createReplythread(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(false);
            result.setPageName("replyThread");
            setId(result, "replyThread");
            return result;
        }

        private UIComponent createResponse(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/response.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createLargecontent(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("largeContent");
            setId(result, "largeContent");
            return result;
        }

        private UIComponent createMobile_005f_largeContent(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/mobile_largeContent.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

        private UIComponent createDocument2(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            UIMobilePage result = new UIMobilePage();
            result.setResetContent(true);
            result.setPageName("document2");
            setId(result, "document2");
            return result;
        }

        private UIComponent createViewTopic2(FacesContext context, 
                UIComponent parent, PageExpressionEvaluator evaluator) {
            String resultPage = "/viewTopic2.xsp";
            UIIncludeComposite result = new UIIncludeComposite();
            result.setPageDriver(getPageParam().getPageDriver());
            result.setPageName(resultPage);
            return result;
        }

    }
}
